package cn.xlbweb.sso.server;

import lombok.Getter;
import lombok.Setter;

/**
 * @author: bobi
 * @date: 2018/7/16 14:52
 * @description:
 */
@Getter
@Setter
public class LayuiTable<T> {

    private Integer code;
    private String msg;
    private Long count;
    private T data;

    private LayuiTable(Long count, T data) {
        this.code = 0;
        this.msg = "查询成功";
        this.count = count;
        this.data = data;
    }

    public static <T> LayuiTable<T> success(Long count, T data) {
        return new LayuiTable<>(count, data);
    }
}
